package com.example.child_protection.service;

import com.example.child_protection.dto.request.SimpleIdRequestDTO;
import com.example.child_protection.dto.request.find.AttrRequestDTO;
import com.example.child_protection.dto.request.find.CheckCodeRequestDTO;
import com.example.child_protection.dto.response.AttrListResponseDTO;
import com.example.child_protection.dto.response.AttrResponseDTO;
import com.example.child_protection.dto.response.CheckCodeResponseDTO;
import org.springframework.stereotype.Service;

/**
 * 属性查询service
 * @date 2018-11-2
 * @author Biz
 */
@Service
public interface AttrQueryService {

    /**
     * id查询
     * @param requestDTO
     * @return
     */
    public AttrResponseDTO findId(SimpleIdRequestDTO requestDTO);

    /**
     * 列表查询
     * @param requestDTO
     * @return
     */
    public AttrListResponseDTO findList(AttrRequestDTO requestDTO);

    /**
     * 列表查询（根据类目ID查询）
     * @param requestDTO
     * @return
     */
    public AttrListResponseDTO findListByCategoryId(AttrRequestDTO requestDTO);


    /**
     * 检测CODE是否重复
     * @param requestDTO
     * @return
     */
    public CheckCodeResponseDTO checkCode(CheckCodeRequestDTO requestDTO);

}
